package com.kehutong.payfees.admin.treasure;

//import com.kehutong.payfees.entity.treasure.PersonalAccount;
//import com.kehutong.payfees.service.treasure.ESignTreasurePersonalAccountServiceImpl;
//import org.coraframework.authz.HasPermission;
//import org.coraframework.inject.Inject;
//import org.coraframework.json.JSONObject;
//import org.coraframework.mvc.MvcAction;
//import org.coraframework.mvc.http.Bean;
//import org.coraframework.mvc.http.ReqMapping;
//import org.coraframework.mvc.http.result.Result;
//
///**
// * e签宝 账户管理
// *
// */
//
//@MvcAction
//@ReqMapping("/admin/sign/treasure/account/personal")
//public class ESignTreasurePersonalAccountController {
//
//    @Inject
//    private ESignTreasurePersonalAccountServiceImpl eSignTreasurePersonalAccountService;
//
//
//    @HasPermission("charge:personal:view")
//    @ReqMapping("/page")
//    public Object pagePersonalAccount(JSONObject jsonObject) {
//        return Result.success(eSignTreasurePersonalAccountService.pagePersonalAccount(jsonObject));
//    }
//
//    @Bean(newInstance=true, copy=true)
//    @HasPermission("charge:personal:edit")
//    @ReqMapping("/create")
//    public Object createPersonalAccount(PersonalAccount personalAccount) throws Exception {
//        eSignTreasurePersonalAccountService.createPersonalAccount(personalAccount);
//        return Result.success();
//    }
//
//    @HasPermission("charge:personal:view")
//    @ReqMapping("/get")
//    public Object getPersonalAccount(String id) {
//        return Result.success(eSignTreasurePersonalAccountService.getPersonalAccount(id));
//    }
//
//    @Bean(newInstance=false, copy=true)
//    @HasPermission("charge:personal:edit")
//    @ReqMapping("/update")
//    public Object updatePersonalAccount(PersonalAccount personalAccount) throws Exception {
//        eSignTreasurePersonalAccountService.updatePersonalAccount(personalAccount);
//        return Result.success();
//    }
//
//    @HasPermission("charge:personal:edit")
//    @ReqMapping("/delete")
//    public Object deletePersonalAccount(String accountId) throws Exception {
//        eSignTreasurePersonalAccountService.deletePersonalAccount(accountId);
//        return Result.success();
//    }
//}
